Image forming apparatus

ABSTRACT

An image forming apparatus that can read data from a storage medium having hierarchically structured directories including a first directory and a second directory which is stored in the first directory. The apparatus includes: a display portion that displays designation information of the first directory; a designation portion that designates the second directory based on the first directory designation information displayed on the display portion; a display control portion that controls the display portion to display designation information of the second directory when the second directory is designated by the designation portion; and a printing portion that index-prints images on a print medium based on files stored in one of the first and second directories, the designation information of which is currently displayed on the display portion.

CROSS-REFERENCE TO RELATED APPLICATION

This application claims priority from Japanese Patent Application No.2006-176917, filed on Jun. 27, 2006, the entire subject matter of whichis incorporated herein by reference.

TECHNICAL FIELD

The present invention relates to an image forming apparatus which canindex print images in a directory.

BACKGROUND

An image forming apparatus is designed to directly receive a storagemedium (e.g., a memory card), in which photographic images or the likecaptured by a digital camera are stored. The apparatus can read thoseimages stored in the storage medium and allow a user to perform apredetermined operation to select and print out a desired image fromamong these images without the use of a personal computer.

The storage medium having a high storage capacity adopts a so-calleddirectory structure (tree structure) file system so that a largequantity of images classified according to user's preference are storedin corresponding directories. To print a desired image, the user wantsto easily search the desired image from among the large quantity ofimages stored in the storage medium.

Japanese patent publication 2005-174261-A discloses an image formingapparatus for selecting a directory in which a desired image is stored.The image forming apparatus to which a storage medium having a directoryfile system is mounted extracts, from plural images stored indirectories, index images representing respective directories, and indexprints those index images as print objects together with index numbersof the directories onto a sheet. Using the index-printed sheet, the userinputs the directory number into the image forming apparatus to selectthe directory in which the desired image would be stored, to therebyfind the desired image.

However, if the directories are arranged to have a hierarchicalstructure of several levels, the user faces difficulty in searching thedesired image because the user may not be able to know where thedirectory storing the desired image therein is located in the filesystem, i.e., how the directories are hierarchically structured.

SUMMARY

The present invention was developed in view of the aforementionedproblems.

The present invention provides, as an illustrative, non-limitingembodiment, an image forming apparatus that can read data from a storagemedium having hierarchically structured directories including a firstdirectory and a second directory which is stored in the first directory.The apparatus includes: a display portion that displays designationinformation of the first directory; a designation portion thatdesignates the second directory based on the first directory designationinformation displayed on the display portion; a display control portionthat controls the display portion to display designation information ofthe second directory when the second directory is designated by thedesignation portion; and a printing portion that index-prints images ona print medium based on files stored in one of the first and seconddirectories, the designation information of which is currently displayedon the display portion.

As one of advantages, a user can easily designate a directory to beindex printed. Other features and advantages will be discussed in detailwith reference to the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic view illustrating a hardware configuration of aprinter according to an embodiment of the present invention.

FIG. 2 is a conceptual view illustrating a directory structure in a USBmemory.

FIG. 3 is a schematic view illustrating an operation portion and adisplay portion disposed on a surface of a body case of the printer.

FIG. 4 is a schematic view illustrating displayed contents on thedisplay portion (during a standby state and at the time of selecting afunction).

FIG. 5 is a flowchart showing a main routine of a directory searchprocess.

FIG. 6 is a flowchart showing a direct printing process.

FIG. 7 is a schematic view illustrating a file designation window (rootdirectory).

FIG. 8 is a schematic view illustrating a file designation window(sub-directory).

FIG. 9 is a flowchart showing an index printing process.

FIG. 10 is a flowchart showing a directory process.

FIG. 11 is a flowchart showing a print data buffering process.

FIG. 12 is a schematic view illustrating printed contents of indexprinting (root directory).

FIG. 13 is a schematic view illustrating printed contents of indexprinting (sub-directory).

FIG. 14 is a flowchart showing a main routine of a direct searchprocess.

DETAILED DESCRIPTION

Now, description will be made for an embodiment of the present inventionwith reference to FIG. 1 to FIG. 14.

1. The Entire Printer Configuration

A printer 10 (an example of an “image forming apparatus”) of thisembodiment has a PC printing function for receiving print data from ahost computer (not shown) or the like and printing the received printdata, and a direct printing function for directly reading image datastored in an external memory such as a USB memory 17 and printing theread image data. The printer 10 has the following characteristicfeatures in relation to the direct printing function.

FIG. 1 is a schematic view illustrating the hardware configuration ofthe printer 10. The printer 10 includes a printing portion 11 forperforming printing operations on a sheet 19 (an example of a “printmedium”), a display portion 12, an USB host I/F 13, a control portion 14(an example of a “display control portion”), an operation portion 15operated by a user, a host I/F 16, and an internal memory 18. Theinternal memory 18 stores various programs such as a program forcontrolling the entire operation of the printer 10. The control portion14 includes a CPU, and controls the operation of the printing portion 11and the display portion 12 based on the programs stored in the internalmemory 18. The printer 10 can communicate data with the host computervia the host I/F 16. The printer 10 can removably mount the USB memory17 thereto and can read information from the USB memory 17 via the USBhost I/F 13.

2. The Directory Structure Inside the USB Memory 17

FIG. 2 is a conceptual view showing an example of the directorystructure inside the USB memory 17. As shown in FIG. 2, the USB memory17 has such a tree structure file system that a plurality of directoriesare arranged hierarchically. Multiple pieces of image data areclassified and stored in the directories created, for example, by user'spreference. In this example, the uppermost directory (hereinafterreferred to as the “ROOT directory 30”) stores three directories(sub-directories) 31A, 31B and 31C and multiple pieces of image data32A, 32B . . . . The sub-directory 31A stores three pieces of image data33A, 33B and 33C. Each of the sub-directories 31B and 31C in thisexample is an empty directory which does not store any information (anydirectories and image data) therein.

3. The Configuration of the Display Portion and the Operation Portion

FIG. 3 is a schematic view illustrating the operation portion 15 and thedisplay portion 12 disposed on a surface of the body case of the printer10. The display portion 12 is constructed, for example, by a liquidcrystal display to have two windows, i.e. a first display portion 21 anda second display portion 22 juxtaposed vertically. The second displayportion 22 displays a path name 40 (an example of “positioninformation”) indicative of a position of a subject directory(hereinafter referred to as the “current directory”) in the treestructure. The first display portion 21 displays, one by one, file names41 of image data and/or directories, if any, in the current directory(an example of “designation information”) . That is, the second displayportion 22 displays the position information of the current directory,the contents of which are to be displayed on the first display portion21.

The operation portion 15 is provided with an up/down switch 23 includingan up key 23A and a down key 23B, an execute key 24, a cancel key 25, anadvance key 26, and a back key 27. Note that for convenience ofdescription, not only image data but also directories may becollectively referred to as “files.”

4. Processing by the Control Portion

As shown in FIG. 4, the control portion 14 displays a message “Ready” onthe second display portion 22 but nothing on the first display portion21 when a standby state for a user input is established, for example,after the printer 10 has been activated. When the execute key 24 isdepressed in the standby state, the control portion 14 changes thedisplay on the display portion 12 to a function selection screen. Morespecifically, for example, the second display portion 22 displays amessage “Select a function.” The first display portion 21 displayseither “Direct printing (Directory search)” or “Direct printing (Directsearch),” which can be selectively switched for display by operating theup/down switch 23. At this time, the operation portion 15 serves as a“second selection portion.”

Here, the “Directory search” refers to a search function for findingdesired image data while changing the current directory from an upperlayer directory to a lower layer directory in the tree structure. The“Direct search” refers to a search function for one-dimensionallydisplaying all image data and directories stored in the USB memory 17 onthe display portion 12 to directly find desired image data or a desireddirectory. The printer 10 of this embodiment can use the directorysearch and the direct search in order to find desired image data. (1)Directory Search

When the execute key 24 is depressed with the message “Direct printing(Directory search)” displayed on the first display portion 21, thecontrol portion 14 starts the directory search process shown in FIG. 5.First, for example, it is determined, in S1 based on a signal inputtedto the USB host I/F 13, whether the USB memory 17 is mounted. If the USBmemory 17 is mounted (“Y” in S1), then the ROOT directory 30 is set asthe current directory in S2, and the direct printing process shown inFIG. 6 is started in S3.

[Direct Printing Process]

In S11, the control portion 14 displays, on the display portion 12, afile designation screen for designating image data or a sub-directory inthe current directory as shown in FIG. 7. More specifically, the seconddisplay portion 22 displays the path name 40 (“/”) of the currentdirectory, i.e., the ROOT directory 30. The first display portion 21displays one filename 41 (“DIR1”, “sample1.pdf” or the like) of thesub-directory 31A, 31B and 31C and image data 32A, 32B . . . in the ROOTdirectory 30. Operating the up/down switch 23 will cause other filenames41 to be sequentially scrolled one by one for display on the firstdisplay portion 21. In this embodiment, the first display portion 21 candisplay messages “Index printing (with a lower layer printed)” and“Index printing (with a lower layer not printed)” in addition to thefilenames 41 as items that can be designated. By depressing the executekey 24 or the advance key 26, the file name or message currentlydisplayed on the display portion 21 is designated. Accordingly, thisfile designation screen enables the user to designate a specific imagedata file and a specific sub-directory in the current directory as wellas index printing of the current directory. Note that “with a lowerlayer printed or not printed” will be described later (see FIG. 9). Atthis time, the operation portion 15 serves as “Designation portion, thefirst selection portion.”

The control portion 14 determines in S12 of FIG. 6 whether the operationportion 15 has been operated. For example, if the sub-directory 31A wasdesignated on the file designation screen (“Y” in S13), then in S19, thedesignated sub-directory 31A is set as the current directory. Then, thecontrol portion 14 returns to S11, where as shown in FIG. 8, the filedesignation screen for the sub-directory 31A is displayed on the displayportion 12. That is, the second display portion 22 displays the pathname 40 (“/DRI1/”) of the sub-directory 31A, and the first displayportion 21 displays one filename 41 (such as “subimg1pdf”) of image data33A, 33B and 33C in the sub-directory 31A. By operating the up/downswitch 23, other filenames 41 of image data 33A, 33B and 33C aresequentially scrolled one by one for display on the first displayportion 21.

Similarly to the file designation screen for the ROOT directory 30, thefirst display portion 21 can display messages “Index printing (with alower layer printed)” and “Index printing (with a lower layer notprinted)” in addition to the filenames 41 as items that can bedesignated. By depressing the execute key 24 or the advance key 26, thefilename or message currently displayed on the first display portion 21is designated. If a sub-directory is further stored in the sub-directory31A, the first display portion 21 can display a filename 41 of thesub-directory as an item that can be designated in the file designationscreen. If the current directory is an empty directory 31B or 31C, onlyits path name 40 is displayed on the second display portion 22, and nofilename 41 is displayed on the first display portion 21.

When an image data file is designated on the file designation screen(“Y” in S14), the control portion 14 sends the designated image datafile to the printing portion 11 in S20 to print the image on the sheet19. Thereafter, the control portion 14 controls the display portion 12to display the file designation screen for the directory in which theprinted image data file is stored, i.e., the current directory (S11) foruser's convenience. In this case, the file designation screen for thesub-directory 31A is displayed. Typically, after having printed a givenimage data file, the user may often want to continue to print otherimage data files which were categorized in the same manner as theprinted image data file and thus stored in the same directory.

When the back key 27 is depressed on the file designation screen (“Y” inS16), the control portion 14 changes or transfers the current directoryto a directory which is higher by one hierarchical level than thecurrent directory in S22, and then controls the display portion 12 todisplay the file designation screen for the new current directory (S11). At this time, the operation portion 15 (the back key 27) serves as a“first transfer portion.” On the other hand, when the cancel key 25 isdepressed on the file designation screen (“Y” in S17), the controlportion 14 changes or transfers the current directory to the uppermostROOT directory 30 in S23, and then controls the display portion 12 todisplay the file designation screen for the ROOT directory 30 (S11) .For example, suppose that the directory 31A has a sub-directory thereinand the cancel key 25 is depressed with this sub-directory set as thecurrent directory. In this case, the current directory is changed to theuppermost ROOT directory 30. At this time, the operation portion 15 (thecancel key 25) serves as a “second transfer portion.” This enables auser to transfer the current directory to a desired directory with goodoperability. In addition, if the USB memory 17 is pulled out of theprinter 10 with the file designation screen displayed (“Y” in S18), thedirect printing process is exited, and then, for example, the standbywindow or function selection screen shown in FIG. 4 is displayed on thedisplay portion 12.

[Index Printing Process]

When index printing is designated on the file designation screen (“Y” inS15), the control portion 14 starts, in S21, the index printing processshown in FIG. 9 for the current directory. In S31, it is determinedwhether “with a lower layer printed” is designated (see FIG. 7 and FIG.8). If “with a lower layer not printed” has been designated (“N” inS31), the control portion 14 starts the directory processing shown inFIG. 10 only on files present just in the current directory in S36 andS37. Namely, in S36, only the current directory is designated as adirectory to be subjected to the directory processing.

On the other hand, if “with a lower layer printed” has been designated(“Y” in S31), then in S32, the control portion 14 reads information onthe current directory and all sub-directories in the current directoryfrom the USB memory 17 into a directory list. Then, the control portion14 selects the directories, read into the directory list, sequentiallyone by one to be subjected to the directory processing (S33) . That is,in S33, the current directory and all sub-directories in the currentdirectory are designated as directories to be subjected to the directoryprocessing. When the directory processing (S34) shown in FIG. 10 hasbeen performed on all of the directories read into the directory list(“N” in S35), the index printing process is exited.

[Directory Processing]

As shown in FIG. 10, in S41, the control portion 14 reads a directoryname of the directory or directory names of the directories designatedby the processing in S36 or S33 to be subjected to the directoryprocessing. In S42, the control portion 14 initializes a file list forstoring information on image data present in the directories to beprocessed and information on the directories to be processed. In S43,the control portion 14 initializes, to zero, a file counter for countingthe number of pieces of information in the file list. If there is a filein the directory being currently subjected to the directory processingand an unprocessed file remains therein (“Y” in S44), the controlportion 14 reads, from the USB memory 17 in S45, the filename 41 of theunprocessed file, the directory name (directory flag) of the directorybeing currently subjected to the directory processing, and the updateday of the unprocessed file, and adds those information to the filelist. Then, the control portion 14 increments the file counter by one inS46.

When the file counter is zero in S47, i.e., when the directory beingcurrently subjected to the directory processing is an empty directory31B or 31C (“Y” in S47), the control portion 14 exits the directoryprocessing, and then proceeds to S11 of FIG. 6 not to execute the indexprinting.

When the file counter is not zero (“N” in S47), in S48, the controlportion 14 initializes a print data memory for storing print data forindex printing in the internal memory 18. Then, in S49, the controlportion 14 adds, to the print data memory, print data of a title “INDEXPRINT” and a directory name for printing on the sheet 19 (see FIG. 12and FIG. 13). In S50, the control portion 14 sorts the image data namesand directory names read into the file list according to a predeterminedrule. For example, the sorting is conducted such that the group ofdirectory names follows the group of image data names, and each of thegroups of image data and directories is arranged as in the order inwhich they appear in dictionaries (e.g., in alphabetical order or in theorder of 50 Japanese phonetic characters) . The group of image data mayfollow the group of directories.

In S51, the control portion 14 initializes, to zero, the serial numberthat is sequentially given to the information in a directory, and readsthe information of one unprocessed file from the file list, thenstarting in S53 the print data buffering process shown in FIG. 11. InS71, the control portion 14 changes, to False, the directory processingend flag which is ascertained as True when the processing of all imagedata or directories of the file list created by the processing of S45 isconducted. Then, in S72, the control portion 14 initializes a print databuffer in the internal memory 18 for storing a horizontal row of printdata for index printing, and in S73, initializes the number of indexesstored in the print data buffer to zero. Then, in S74, the controlportion 14 reads the information of one unprocessed file of the filelist. If the read file is image data and is printable (“N” in S75 and“N” in S76), then in S77, the control portion 14 creates reduced imagedata of the head page of the image data. If the aforementioned imagedata can exist in plurality (e.g., text) (“N” in S78), then the pagecount is analyzed (S79), and the control portion 14 proceeds to S80.

On the other hand, if the image data cannot exist in plurality (e.g., aJPEG image) (“Y” in S78), then in S85, the control portion 14 changesthe page count data to hyphen “-” data, and then proceeds to S80.Furthermore, if the image data is unprintable (“Y” in S76), then thecontrol portion 14 employs image “?” data as reduced image data toindicate that the data is unprintable (S84), and changes the page countdata to the hyphen “-” data in S85. Then, the control portion 14proceeds to S80.

In S80, the control portion 14 creates index print data for the imagedata to be currently processed, from the information of theaforementioned reduced image data, serial number data, page count data,image data name data, and update day data, and then adds the index printdata to the print data buffer.

If the file read in S74 is a directory (“Y” in S75), then in S86, thecontrol portion 14 reads an image for the directory from the internalmemory 18 and employs it as reduced image data. The control portion 14creates index print data for the image data to be currently processed,from the information of the reduced image data, serial number data,directory name data, and update day data, and then adds the index printdata to the print data buffer (S87).

In S81 after S80 and S87, the control portion 14 adds 1 to the serialnumber, and if there is no unprocessed file (“N” in S82), changes thedirectory processing end flag to True in S83 to exit the print databuffering process. If there is an unprocessed file (“Y” in S82), then inS88, the control portion 14 adds 1 to the count, and if this count isless than a number (e.g., five) that can be arranged in one row (in ahorizontal row in this embodiment) on the sheet 19 (“Y” in S89), returnsto S74. On the other hand, if the number of processed files is five (“N”in S89), then the control portion 14 exits the print data bufferingprocess, and then proceeds to S54 of FIG. 10.

Then in S54, the control portion 14 determines whether the sheet 19 hasa space left for printing of the print data that has been processed sofar. If there is no space (“Y” in S54), then in S55, the control portion14 inserts page break information into the print data memory, and thenin S56, adds again the print data of the aforementioned title anddirectory name for the next sheet 19 to the print data memory. In S57,the control portion 14 writes the print data buffer information into theprint data memory. On the other hand, if there is a space on the sheet19 (“N” in S54), the control portion 14 simply proceeds to S57.

If the directory end flag is still False (“N” in S58), the controlportion 14 returns to S52. If the directory end flag is True (“Y” inS58), then in S59, the control portion 14 sends the print data memoryinformation to the printing portion 11 to execute the printing process.

The aforementioned index printing process allows the information asshown in FIG. 12 and FIG. 13 to be printed on the sheet 19. As shown inFIG. 12, when the ROOT directory 30 is index printed, the title “INDEXPRINT” is printed on the uppermost portion of the sheet 19. Below it,the path name 40 “/” of the ROOT directory 30 is printed, and furtherbelow it, pieces of information of images or sub-directories are printedfive by five horizontally in a line. The information on each imageincludes a reduced image 50 of the head page of the image, the serialnumber, the total page count, the image data name, and the update day.In the case of unprintable image data, a reduced image 51 of “?”indicating the image being unprintable is printed, and “-” is printed asthe total page count. On the other hand, if the image data is a JPEGimage, “-” is also printed as the total page count.

The information on each directory includes a reduced image 52 displayedas “DIR” (an example of a “directory identification number”), the serialnumber, the directory name, and the update day. As shown in FIG. 13,when a sub-directory is index printed, the title “INDEX PRINT” isprinted on the uppermost portion of the sheet 19 and below it, the pathname 40 “/DIR1/” of the sub-directory is printed. Accordingly, bylooking at the index printed sheet 19, the user can easily know thehierarchical level of the directory in which the desired image data isstored. In addition, the control portion 14 returns to S11 of FIG. 6after the index printing is exited, and controls the display portion 12to display the file designation screen for the directory subjected tothe index printing, thereby making it possible to easily designate thedesired image. Furthermore, if index printing (with a lower layerprinted) is designated (“Y” in S31), then the processing in S32 to S34can be repeated, thereby allowing for index printing of a hierarchicallylower level directory of the designated directory.

(2) Direct Search

When the execute key 24 is depressed with the message “Direct printing(direct search)” displayed on the first display portion 21, the controlportion 14 starts the direct search process shown in FIG. 14. First, inS90, for example, the control portion 14 determines based on the signalinputted to the USB host I/F 13 whether the USB memory 17 is mounted.Then, if the USB memory 17 is mounted (“Y” in S90), then in S91, thecontrol portion 14 creates a list of all one-dimensionally arrangedimage data and directories stored in the USB memory 17. Then in S92, inaccordance with the list, the control portion 14 sets the filenames 41of all image data and directories as displayed objects, and controls thedisplay portion 12 to display those filenames 41 one-dimensionally,e.g., on the first display portion 21. That is, by operating the up/downswitch 23, the filenames 41 of all image data and directories arescrolled sequentially one by one for display on the first displayportion 21.

The control portion 14 determines in S93 whether the operation portion15 has been operated. If one of the directories 30 and 31 is designatedusing the display of S92 (one-dimensional display screen) (“Y” in S94),then in S97, the control portion 14 sets the current directory as adesignated directory. If the current directory has a file as in the caseof the directories 30 and 31A (“Y” in S98), then in S99, the controlportion 14 starts the index printing process discussed with reference toFIG. 9 to perform index printing of the current directory.

Thereafter, in S102, the control portion 14 proceeds to S11 of FIG. 6.That is, after index printing, the file designation screen for the indexprinted directory is displayed on the display portion 12 (see FIG. 7 andFIG. 8). Typically, by looking at the index printed sheet 19, the usermay often want to print an enlarged version of a desired image foundfrom the printed images on the sheet 19. Accordingly, as in thisembodiment, after index printing, the file designation screen for theindex printed directory is displayed on the display portion 12, therebymaking it possible to designate and print desired image data withefficiency.

If the current directory is an empty directory (31B or 31C) (“N” inS98), the control portion 14 does not execute the index printing processand returns to the standby state of S93. This way, wasteful indexprinting, such as printing of only the title and the path name 40 on thesheet 19 with no images, can be eliminated.

If one of the image data 32 and 33 is designated using theone-dimensional display screen of S92 (“Y” in S95), then in S100, thecontrol portion 14 sets the directory having the designated image dataas the current directory, and controls the printing portion 11 to printthe designated image data on the sheet 19 (S101).

Thereafter, in S102, the control portion 14 proceeds to S11 of FIG. 6.That is, after the image data designated by the direct search (e.g., theimage data 33B) has been printed, the control portion 14 controls thedisplay portion 12 to display the file designation screen for thedirectory 31A in which the printed image data 33B is stored (see FIG.8). Typically, after having printed given image data, the user maydesire to print other image data which was categorized in the samemanner and stored in the same directory. Further, to know what is theimage data which has been categorized in the same manner as the printedimage data, the user may want to index print the directory in which theprinted image data is stored. Accordingly, this display control isconvenient for the user. If the USB memory 17 is pulled out of theprinter 10 with the file designation screen being displayed (“Y” inS96), the direct search process is exited.

5. Effects of This Embodiment

(1) According to this embodiment, when a specific directory isdesignated in accordance with the directory name of the directorydisplayed on the first display portion 21 provided on the printer 10, ahierarchically lower level directory stored in the designated directory,i.e., a sub-directory and image data are displayed. Accordingly, theuser can know the hierarchical directory structure constructed in theUSB memory 17 from the display on the first display portion 21, and thuseasily designate a desired directory to perform index printing of theimage data included therein. In addition, since the second displayportion 22 displays the path name 40 of the current directory, the usercan more easily know the hierarchical directory structure.

(2) On the file designation screen, the first display portion 21displays an index printing command as a displayed object (an item to bedesignated) in addition the filenames 41 of a sub-directory and imagedata in the current directory. The user can issue the index printingcommand in the same manner as the designation of the sub-directory andimage data. Furthermore, the user can select how the index printing isexecuted. That is, the user can selectively designate a first option(with a lower layer not printed) in which only a sub-directory lower byone hierarchical level than the current directory and image data in thecurrent directory are printed and a second option (with a lower layerprinted) in which image data in the sub-directory is also printed inaddition to the first option.

(3) If the current directory is an empty directory (31B or 31C), thenthe process returns to a standby state without performing the indexprinting process. It is thus possible to eliminate wasteful indexprinting, for example, printing only the title or the path name 40 onthe sheet 19 with no images.

(4) When a desired directory name or image data name is known inadvance, the desired directory or the like may be more easily designatedby the direct search function rather than by the directory searchfunction. In this regard, both search functions are made selectivelyavailable.

Other Embodiments

The present invention is not limited to the embodiment that has beendescribed above with reference to the drawings, for example, thefollowing embodiments may also fall within the technical scope of thepresent invention.

(1) The aforementioned embodiment employed the USB memory 17 as anexample of a storage medium. However, the present invention is notlimited thereto. The storage medium may be a memory card such as acompact flash (trade mark), smart media (trade mark), or a memory stick(trade mark). Alternatively, without being limited to such an externalmemory, it is also possible to employ an internal memory 18 that isincorporated in the printer 10. Further, an internal memory that isincorporated in a digital camera, a video camera, a cellular phone orthe like connectable to and communicatable with the printer 10 may beused as a storage medium according to the present invention.

(2) The aforementioned embodiment is configured such that the directoryname of a sub-directory in the current directory and an image data nameare displayed as a designatable object on the first display portion 21of the file designation screen; however, the present invention is notlimited thereto. Only the directory name of a sub-directory may also bedisplayed as a designatable object. However, such a configuration asthat of the aforementioned embodiment in which the image data name isalso displayed as a designatable object would make it possible todirectly command the printing of desired image data using the filedesignation screen.

(3) In the aforementioned embodiment, the display portion 12 displaysfilenames of image data and/or directories one by one; however, thepresent invention is not limited thereto. A plurality of filenames mayalso be concurrently displayed depending on the size of the display.

The present invention provides illustrative, non-limiting embodiments asfollows:

(1) An image forming apparatus includes a display portion for displayingdesignation information corresponding to a directory present at a levelon a storage medium in which a plurality of directories are storedhierarchically; a designation portion for designating a directory inaccordance with the designation information displayed on the displayportion; a display control portion for displaying on the displayportion, when a directory is designated at the designation portion,designation information corresponding to a lower layer directory presentin the designated directory; and a printing portion for index printing,on a print medium, an image present in the directory corresponding tothe designation information displayed on the display portion.

The “image forming apparatus” may be not only a printing apparatus suchas a printer (e.g., a laser printer) but also a facsimile machine or amulti-function machine provided with a printing function, a readingfunction (scanner function), etc.

The “print medium” may not be limited to a paper print medium such as asheet but may also be a plastic print medium such as an OHP sheet.

(2) In the image forming apparatus according to (1), the display portioncomprises a first display portion and a second display portion, and thedisplay control portion displays the designation informationcorresponding to the directory on the first display portion, anddisplays position information indicating a hierarchical position of thedirectory on the second display portion.

(3) In the image forming apparatus according to (1) or (2), the displaycontrol portion displays designation information corresponding to animage in the designated directory on the display portion in addition tothe lower layer directory.

(4) In the image forming apparatus according to any one of (1) to (3),the storage medium is an external memory removably attached to theapparatus body.

(5) In the image forming apparatus according to any one of (1) to (4),the display control portion displays instruction information forinstructing index printing of the designated directory on the displayportion.

(6) In the image forming apparatus according to any one of (1) to (5),the printing portion prints the position information indicating thehierarchical position of an index printed directory and the image on thesame print medium.

(7) In the image forming apparatus according to any one of (1) to (6),the printing portion prints, on the print medium, an image in an indexprinted directory as well as identification information in a lower layerdirectory within the directory.

(8) In the image forming apparatus according to any one of (1) to (7),the printing portion index prints, on the print medium, an image in theindex printed directory as well as an image in a lower layer directorystored in the directory.

(9) The image forming apparatus according to (8) further includes afirst selection portion for allowing a user to operatively selectwhether to print an image in the lower layer directory upon the indexprinting. The printing portion executes index printing in response tothe selection made at the first selection portion.

(10) The image forming apparatus according to any one of (1) to (9)further includes a first transfer portion for inputting a transferinstruction. The display control portion transfers a displayed object onthe display portion from the currently displayed directory to adirectory higher by one level in accordance with a transfer instructionfrom the first transfer portion.

(11) The image forming apparatus according to any one of (1) to (10)further includes a second transfer portion for inputting a transferinstruction. The display control portion transfers a displayed object onthe display portion to the uppermost directory in accordance with atransfer instruction from the second transfer portion.

(12) In the image forming apparatus according to any one of (1) to (11),in the absence of information in the designated directory, the printingportion does not execute index printing on the print medium.

(13) The image forming apparatus according to any one of (1) to (12)further includes a second selection portion for selecting to make atleast either a directory search or a direct search. The display controlportion displays, on the display portion, designation informationcorresponding only to information in the currently designated directoryif the directory search is selected at the second selection portion. Thedisplay control portion displays, on the display portion, designationinformation corresponding to all information stored in the storagemedium if the direct search is selected.

According to the configuration of (1), when a specific directory isdesignated in accordance with the designation information of thedirectory displayed on the display portion provided in the image formingapparatus, a lower layer directory stored in the designated directory,i.e., a sub-directory is displayed. Accordingly, the user can know thehierarchical directory structure constructed on the storage medium fromthe display on the display portion and easily designate the directory tobe index printed, thereby index-printing an image that is includedtherein.

According to the configuration of (2), position information (e.g., pathname) indicating the hierarchical position of an upper layer directoryfor storing a directory for which designation information is currentlydisplayed is displayed on the display portion, thereby allowing the userto more easily know the hierarchical directory structure according tothe configuration of (3), it is possible to check, on the displayportion, not only a lower layer directory present in the designateddirectory but also designation information corresponding to an imagepresent in the designated directory. This allows for easily finding adirectory which includes a desired image.

According to the configuration of (4), the present invention isparticularly effective because an external memory has a higher storagecapacity than an internal memory, and a complicated hierarchicalstructure is more likely constructed.

According to the configuration of (5), index printing can be directed inthe same manner as a designated directory, thereby providing an improvedoperability.

According to the configuration of (6), by looking at the index printedprint medium, it can be easily known where the index printed directoryis located in the hierarchical structure.

According to the configuration of (7), it is possible to easily know notonly an image stored in a designated directory but also the presence orabsence of a lower layer directory by looking at the index printed printmedium.

According to the configurations of (8) and (9), it is possible to checknot only an image stored in the designated directory but also an imagestored in a lower layer directory by looking at the index printed printmedium. It is also desirable to be able to select whether to print animage in a lower layer directory.

According to the configurations of (10) and (11), a displayed object onthe display portion can be transferred to an-upper directory of thecurrently displayed directory or to the uppermost directory. It is thuspossible to designate a directory to be index printed with goodoperability.

According to the configuration of (12), it is possible to preventunnecessary index printing of a designated directory in which noinformation (an image or a directory) is stored.

According to the configuration of (13), it is possible to select thedirectory search and the direct designation. With either one selected,the configuration according to each of the claims above makes itpossible to efficiently perform index printing.

1. An image forming apparatus that can read data from a storage mediumhaving hierarchically structured directories including a first directoryand a second directory which is stored in the first directory, theapparatus comprising: a display portion that displays designationinformation of the first directory; a designation portion thatdesignates the second directory based on the first directory designationinformation displayed on the display portion; a display control portionthat controls the display portion to display designation information ofthe second directory when the second directory is designated by thedesignation portion; and a printing portion that index-prints images ona print medium based on files stored in one of the first and seconddirectories, the designation information of which is currently displayedon the display portion.
 2. The image forming apparatus according toclaim 1, wherein the display portion comprises a first display portionand a second display portion, and the display control portion controlsthe display portion to display the designation information on the firstdisplay portion, and position information on the second display portion,the position information being indicative of a hierarchical position ofthe directory, the designation information of which is currentlydisplayed on the first display portion.
 3. The image forming apparatusaccording to claim 1, wherein the files include image files stored inthe one of the first and second directory, the designation informationof which is currently displayed on the display portion.
 4. The imageforming apparatus according to claim 1, further comprising: an interfacethat can removably receive the storage medium in the form of an externalmemory.
 5. The image forming apparatus according to claim 1, wherein thedisplay control portion controls the display portion to displayinstruction information for instructing index printing of the directory,the designation information of which is currently displayed on thedisplay portion.
 6. The image forming apparatus according to claim 1,wherein the printing portion prints the images and position informationindicative of a hierarchical position of the one directory on the sameprint medium.
 7. The image forming apparatus according to claim 1,wherein the images to be printed by the printing portion on the printmedium when the designation information of the first directory iscurrently displayed on the display portion includes images based onimage files stored in the first directory and identification informationof the second directory.
 8. The image forming apparatus according toclaim 1, wherein the images to be printed by the printing portion on theprint medium when the designation information of the first directory iscurrently displayed on the display portion includes first images basedon image files stored in the first directory and second images based onimage files stored in the second directory.
 9. The image formingapparatus according to claim 8, further comprising a first selectionportion by which a user can operatively select whether to print thesecond images, wherein the printing portion selectively index-printsboth the first and second images or the first images depending on user'sselection by the first selection portion.
 10. The image formingapparatus according to claim 1, further comprising a first transferportion that inputs a transfer instruction, wherein: when thedesignation information of the first directory is currently displayed onthe display portion, the display control portion controls the displayportion to display information indicative of the files stored in thefirst directory as the designation information of the first directory;when the transfer instruction is inputted by the first transfer portionin a state in which the designation information of the first directoryis currently displayed on the first display, the display control portioncontrols the display portion to display information indicative of filesstored in a third directory as the designation information of the thirddirectory, the third directory being higher by one hierarchical levelthan the first directory.
 11. The image forming apparatus according toclaim 1, further comprising a second transfer portion that inputs atransfer instruction, wherein: when the designation information of thesecond directory is currently displayed on the display portion, thedisplay control portion controls the display portion to displayinformation indicative of the files stored in the second directory asthe designation information of the second directory; when the transferinstruction is inputted by the second transfer portion in a state inwhich the designation information of the second directory is currentlydisplayed on the display portion, the display control portion controlsthe display portion to display information indicative of files stored ina fourth directory as the designation information of the fourthdirectory, the fourth directory being an uppermost directory among thehierarchically structured directories in the storage medium.
 12. Theimage forming apparatus according to claim 1, wherein if the directory,the designation information of which is currently displayed on displayportion, has no information, the printing portion does not execute indexprinting on the print medium.
 13. The image forming apparatus accordingto claim 1, further comprising: a second selection portion that selectsat least either a directory search or a direct search, wherein thedisplay control portion controls the display portion to displaydesignation information corresponding only to information stored in thecurrently designated directory if the directory search is selected bythe second selection portion, and controls the display portion todisplay designation information corresponding to all information storedin the storage medium if the direct search is selected by the secondselection portion.
 14. The image forming apparatus according to claim 3,wherein the files include the second directory when the designationinformation of the first directory is currently displayed on the displayportion.
 15. An image forming apparatus that can read data from astorage medium having hierarchically structured directories includingfirst and second directories, the first directory storing first imagefiles and the second directory therein, the second directory storingsecond image files and being lowered by one hierarchical level than thefirst directory, the apparatus comprising: a display; an input unit; anda display controller which controls the display: (1) to display afunction selection screen on the display when a predetermined conditionis met, the function selection screen indicating selectable optionsincluding a directory search; (2) to display a file designation screenfor a current directory on the display in response to a commandindicative of selection of the directory search by a user using thefunction selection screen, the file designation screen indicating itemsthat can be selectively designated by the user using the filedesignation screen for the current directory; (3) to display informationidentifying the first image files and information identifying the seconddirectory as items in the file designation screen for the firstdirectory in response to a command indicating that the first directoryis designated as the current directory by the user using the input unit;and (4) to display information identifying the second image files asitems in the file designation screen for the second directory inresponse to a command indicating that the second directory is designatedas the current directory by the user using the input unit.
 15. The imageforming apparatus according to claim 1, wherein the display controllercontrols the display to display index printing as one of the selectivelydesignatable options using the file designation screen for the currentdirectory.
 16. The image forming apparatus according 15, furthercomprising: a print unit; a print controller which controls the printunit: (1) to print reduced images respectively representing the firstimage files and a predetermined image indicative of the second directoryon a print medium when the index printing is designated by the userusing the input unit and the file designation screen for the firstdirectory; and (2) to print reduced images respectively representing thesecond image files when the index printing is designated by the userusing the input unit and the file designation screen for the seconddirectory.